module.exports = {
    title: 'Fabric中文文档',
    description: '让canvas可爱起来',
    // dest:'public',
    base:'/fabric-doc/',
    search: true,
    searchMaxSuggestions: 10,
    head: [
        // 注入到当前页面的 HTML <head> 中的标签
        ['link', { rel: 'manifest', href: '/photo.jpg' }],
        ['link', { rel: 'apple-touch-icon', href: '/photo.jpg' }],
    ],
    markdown: {
        lineNumbers: true
    },
    //改这里的内容，需要重新npm run dev
    themeConfig: {
        smoothScroll: true,
        editLinks: true,
        // Git 仓库和编辑链接
        repo: 'https://gitee.com/Funcion_woqu/fabric-doc.git', // 你的仓库
        repoLabel: 'Gitee', // 导航栏上的文本
        editLinkText: '在 GitHub 上编辑此页',
        lastUpdated: '上次更新',
        sidebar:{
            '/guide/':[
                {
                    title: '指南',
                    collapsable: false,
                    children: [
                        '',
                        'getting-started',
                        'using'
                    ]
                },
                {
                    title: '深入',
                    collapsable: false,
                    children: [

                    ]
                }
            ],
            '/api/':[
                {
                    title: '',
                    collapsable: false,
                    children: [
                        ''
                    ]
                }
            ]
        },
        nav: [
            { text: '首页', link: '/' },
            { text: '指南', link: '/guide/' },
            { text: 'Api', link: '/api/' },
            { text: '关于我们', link: '/about/' },
            { text: '联系我们', link: '/contact/' },
        ]
    },
    configureWebpack: {
      resolve: {
        alias: {
          '@alias': 'static'
        }
      }
    },
    plugins: [
        '@vuepress/back-to-top',
        '@vuepress/nprogress',
        ['@vuepress/active-header-links',{sidebarLinkSelector: '.sidebar-link', headerAnchorSelector: '.header-anchor'}],
        ['@vuepress/pwa', {serviceWorker: true, updatePopup: true}]
    ]
}
